<template>
  <div>
    <el-form :model="models" ref="qmGenForm" label-width="150px" class="qm-gen-form">
      <el-row>
        <el-col :span="12">
          <el-form-item label="消息标题：">
            <span>{{controlData.message.title }}</span>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="消息类型：" >
            <span v-if="models.model.messageType==='bulletin'">收文通知</span>
            <span v-if="models.model.messageType==='email'">邮件</span>
            <span v-if="models.model.messageType==='notice'">站内信</span>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="接收人账号：">
            <span>{{models.model.receiver}}</span>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="发送状态：">
            <span v-if="models.model.status==='success'">发送成功</span>
            <span v-if="models.model.status==='failed'">发送失败</span>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="次数：">
            <span>{{models.model.retryCount}}</span>
          </el-form-item>
        </el-col>
		<el-col :span="12">
          <el-form-item label="阅读状态：" >
            <span v-if="models.model.readStatus==='none'">未阅</span>
            <span v-if="models.model.readStatus==='read'">已阅</span>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <el-form-item label="结果：">
            <span>{{models.model.result}}</span>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="24">
          <el-form-item label="栈路径：">
            <span>{{models.model.stackTrace}}</span>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="发送时间：" >
            <span>{{models.model.startTime | date("yyyy-MM-dd")}}</span>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="结束时间：" >
            <span>{{models.model.endTime | date("yyyy-MM-dd")}}</span>
          </el-form-item>
        </el-col> 
      </el-row>
	  <el-row>
		  <el-col :span="24">
			  <el-form-item label="内容：" >
			  <span v-html="controlData.message.body"></span>
			  </el-form-item>
		  </el-col>
	  </el-row>
    </el-form>
  </div>
</template>

<script>
export default {
  name: "message-sysMessageLog-create",
  props: {
    models: Object,
    controlData: Object
  },

};
</script>

<style scoped>
</style>